projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730a685
)
Add a way to test titlebars in dark theme
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 26 Aug 2013 03:18:04 +0000
(23:18 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 27 Aug 2013 03:07:04 +0000
(23:07 -0400)
tests/testtitlebar.c
patch
|
blob
|
history
diff --git
a/tests/testtitlebar.c
b/tests/testtitlebar.c
index 107f705a5d816c4ef09bfb65dc10edd569d719c9..1d216494674c5a665f50f78a6c56b1fdaea3983f 100644
(file)
--- a/
tests/testtitlebar.c
+++ b/
tests/testtitlebar.c
@@
-13,6
+13,9
@@
main (int argc, char *argv[])
gtk_init (NULL, NULL);
+ if (g_getenv ("DARK"))
+ g_object_set (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", TRUE, NULL);
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);